package com.xsmart.oa.api;

import com.xsmart.common.entity.RequestBean;
import com.xsmart.oa.services.AdminMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by lin.wenhui on 2018/1/9.
 */
@Controller
@RequestMapping("/api")
public class AdminMenuController {
    @Autowired
    AdminMenuService adminMenuService;

//    @RequestMapping(value = "/v1/adminMenuService/queryAdminMenu", method = RequestMethod.POST)
//    @ResponseBody
//    public Object queryAdminMenu(@ModelAttribute RequestBean requestBean, HttpServletRequest request) {
//        return adminMenuService.queryAdminMenu(requestBean);
//    }

    @RequestMapping(value = "/v1/adminMenuService/queryAdminButtonPower", method = RequestMethod.POST)
    @ResponseBody
    public Object queryAdminButtonPower(@ModelAttribute RequestBean requestBean, HttpServletRequest request) {
        return adminMenuService.queryAdminButtonPower(requestBean);
    }
}
